package erlangtools;

public class Invocation {
	private String module;
	private String function;
	private int arity;
	public String getModule() {
		return module;
	}
	public void setModule(String module) {
		this.module = module;
	}
	public String getFunction() {
		return function;
	}
	public void setFunction(String function) {
		this.function = function;
	}
	public int getArity() {
		return arity;
	}
	public void setArity(int arity) {
		this.arity = arity;
	}
	public Invocation(String module, String function, int arity) {
		this.module = module;
		this.function = function;
		this.arity = arity;
	}
	public Invocation(String function, int arity) {
		this.module = null;
		this.function = function;
		this.arity = arity;
	}
	public String toString() {
		if (module != null) return module + ":" + function + "/" + arity;
		else return function + "/" + arity;
	}
}
